# @Time    : 2023/3/13 19:55
# @Author  : SunJian
# @Email   : 330160114@qq.com
# @File    : main.py
# @Software: PyCharm
"""
文件说明：

"""
from celery import Celery

import os
if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'meiduo_mall.settings.dev'

celery_app = Celery('meiduo')

celery_app.config_from_object('celery_tasks.config')

# 自动注册 celery 任务
celery_app.autodiscover_tasks(['celery_tasks.sms', 'celery_tasks.email'])